<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>配置 | 前言</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="gitbook/style.css">
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="./plugins.html" />
    
    
    <link rel="prev" href="./syntax.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="0.4"
        data-chapter-title="配置"
        data-filepath="settings.md"
        data-basepath="."
        data-revision="Wed Apr 27 2016 12:23:04 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="./index.html">
                
                        <i class="fa fa-check"></i>
                        
                        GitBook
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="0.1" data-path="installation.html">
            
                
                    <a href="./installation.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>0.1.</b>
                        
                        安装
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="0.2" data-path="commands.html">
            
                
                    <a href="./commands.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>0.2.</b>
                        
                        命令
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="0.3" data-path="syntax.html">
            
                
                    <a href="./syntax.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>0.3.</b>
                        
                        语法
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="0.4" data-path="settings.html">
            
                
                    <a href="./settings.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>0.4.</b>
                        
                        配置
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="0.5" data-path="plugins.html">
            
                
                    <a href="./plugins.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>0.5.</b>
                        
                        插件
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="0.6" data-path="bookjson.html">
            
                
                    <a href="./bookjson.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>0.6.</b>
                        
                        json
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="./" >前言</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h2 id="gitbook&#x914D;&#x7F6E;">GitBook&#x914D;&#x7F6E;</h2>
<p>&#x8BB0;&#x5F55;GitBook&#x7684;&#x4E00;&#x4E9B;&#x914D;&#x7F6E;&#x4FE1;&#x606F;</p>
<ul>
<li><a href="#title">title - &#x6807;&#x9898;</a></li>
<li><a href="#author">author - &#x4F5C;&#x8005;&#x4FE1;&#x606F;</a></li>
<li><a href="#description">description - &#x4E66;&#x672C;&#x63CF;&#x8FF0;</a></li>
<li><a href="#language">language - &#x4F7F;&#x7528;&#x7684;&#x8BED;&#x8A00;</a></li>
<li><a href="#links">links - &#x5728;&#x4FA7;&#x8FB9;&#x680F;&#x6DFB;&#x52A0;&#x94FE;&#x63A5;</a></li>
<li><a href="#styles">styles - &#x81EA;&#x5B9A;&#x4E49;&#x6837;&#x5F0F;</a></li>
<li><a href="#plugins">plugins - &#x63D2;&#x4EF6;</a></li>
<li><a href="#pluginsconfig">pluginsConfig - &#x63D2;&#x4EF6;&#x914D;&#x7F6E;</a></li>
<li><a href="#gitbook">gitbook - &#x6307;&#x5B9A;gitbook&#x7248;&#x672C;</a></li>
</ul>
<h3 id="title">title</h3>
<p>&#x8BBE;&#x7F6E;&#x4E66;&#x672C;&#x7684;&#x6807;&#x9898;</p>
<pre><code class="lang-json"><span class="hljs-string">&quot;title&quot;</span> : <span class="hljs-string">&quot;Gitbook Use&quot;</span>
</code></pre>
<h3 id="author">author</h3>
<p>&#x4F5C;&#x8005;&#x7684;&#x76F8;&#x5173;&#x4FE1;&#x606F;</p>
<pre><code class="lang-json"><span class="hljs-string">&quot;author&quot;</span> : <span class="hljs-string">&quot;zhangjikai&quot;</span>
</code></pre>
<h3 id="description">description</h3>
<p>&#x672C;&#x4E66;&#x7684;&#x7B80;&#x5355;&#x63CF;&#x8FF0;</p>
<pre><code class="lang-json"><span class="hljs-string">&quot;description&quot;</span> : <span class="hljs-string">&quot;&#x8BB0;&#x5F55;Gitbook&#x7684;&#x914D;&#x7F6E;&#x548C;&#x4E00;&#x4E9B;&#x63D2;&#x4EF6;&#x7684;&#x4F7F;&#x7528;&quot;</span>
</code></pre>
<h3 id="language">language</h3>
<p>Gitbook&#x4F7F;&#x7528;&#x7684;&#x8BED;&#x8A00;, &#x7248;&#x672C;2.6.4&#x4E2D;&#x53EF;&#x9009;&#x7684;&#x8BED;&#x8A00;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code>en, ar, bn, cs, de, en, es, fa, fi, fr, he, it, ja, ko, no, pl, pt, ro, ru, sv, uk, vi, zh-hans, zh-tw
</code></pre><p>&#x914D;&#x7F6E;&#x4F7F;&#x7528;&#x7B80;&#x4F53;&#x4E2D;&#x6587;</p>
<pre><code>&quot;language&quot; : &quot;zh-hans&quot;,
</code></pre><h3 id="links">links</h3>
<p>&#x5728;&#x5DE6;&#x4FA7;&#x5BFC;&#x822A;&#x680F;&#x6DFB;&#x52A0;&#x94FE;&#x63A5;&#x4FE1;&#x606F;</p>
<pre><code class="lang-json"><span class="hljs-string">&quot;links&quot;</span> : {
    <span class="hljs-string">&quot;sidebar&quot;</span> : {
        <span class="hljs-string">&quot;Home&quot;</span> : <span class="hljs-string">&quot;http://zhangjikai.com&quot;</span>
    }
}
</code></pre>
<h3 id="styles">styles</h3>
<p>&#x81EA;&#x5B9A;&#x4E49;&#x9875;&#x9762;&#x6837;&#x5F0F;&#xFF0C; &#x9ED8;&#x8BA4;&#x60C5;&#x51B5;&#x4E0B;&#x5404;generator&#x5BF9;&#x5E94;&#x7684;css&#x6587;&#x4EF6;</p>
<pre><code class="lang-json"><span class="hljs-string">&quot;styles&quot;</span>: {
    <span class="hljs-string">&quot;website&quot;</span>: <span class="hljs-string">&quot;styles/website.css&quot;</span>,
    <span class="hljs-string">&quot;ebook&quot;</span>: <span class="hljs-string">&quot;styles/ebook.css&quot;</span>,
    <span class="hljs-string">&quot;pdf&quot;</span>: <span class="hljs-string">&quot;styles/pdf.css&quot;</span>,
    <span class="hljs-string">&quot;mobi&quot;</span>: <span class="hljs-string">&quot;styles/mobi.css&quot;</span>,
    <span class="hljs-string">&quot;epub&quot;</span>: <span class="hljs-string">&quot;styles/epub.css&quot;</span>
}
</code></pre>
<p>&#x4F8B;&#x5982;&#x4F7F;<code>&lt;h1&gt; &lt;h2&gt;</code>&#x6807;&#x7B7E;&#x6709;&#x4E0B;&#x8FB9;&#x6846;&#xFF0C; &#x53EF;&#x4EE5;&#x5728;<code>website.css</code>&#x4E2D;&#x8BBE;&#x7F6E;</p>
<pre><code class="lang-css"><span class="hljs-tag">h1</span> , <span class="hljs-tag">h2</span><span class="hljs-rules">{
    <span class="hljs-rule"><span class="hljs-attribute">border-bottom</span>:<span class="hljs-value"> <span class="hljs-number">1px</span> solid <span class="hljs-hexcolor">#EFEAEA</span></span></span>;
}</span>
</code></pre>
<h3 id="plugins">plugins</h3>
<p>&#x914D;&#x7F6E;&#x4F7F;&#x7528;&#x7684;&#x63D2;&#x4EF6;</p>
<pre><code>&quot;plugins&quot;: [
    &quot;disqus&quot;
]
</code></pre><p>&#x6DFB;&#x52A0;&#x65B0;&#x63D2;&#x4EF6;&#x4E4B;&#x540E;&#x9700;&#x8981;&#x8FD0;&#x884C;<code>gitbook install</code>&#x6765;&#x5B89;&#x88C5;&#x65B0;&#x7684;&#x63D2;&#x4EF6;  </p>
<p>Gitbook&#x9ED8;&#x8BA4;&#x5E26;&#x6709;5&#x4E2A;&#x63D2;&#x4EF6;&#xFF1A;</p>
<ul>
<li>highlight</li>
<li>search</li>
<li>sharing</li>
<li>font-settings</li>
<li>livereload</li>
</ul>
<p>&#x5982;&#x679C;&#x8981;&#x53BB;&#x9664;&#x81EA;&#x5E26;&#x7684;&#x63D2;&#x4EF6;&#xFF0C; &#x53EF;&#x4EE5;&#x5728;&#x63D2;&#x4EF6;&#x540D;&#x79F0;&#x524D;&#x9762;&#x52A0;<code>-</code></p>
<pre><code class="lang-json"><span class="hljs-string">&quot;plugins&quot;</span>: [
    <span class="hljs-string">&quot;-search&quot;</span>
]
</code></pre>
<h3 id="pluginsconfig">pluginsConfig</h3>
<p>&#x914D;&#x7F6E;&#x63D2;&#x4EF6;&#x7684;&#x5C5E;&#x6027;</p>
<pre><code class="lang-json"><span class="hljs-string">&quot;pluginsConfig&quot;</span>: {
    <span class="hljs-string">&quot;fontsettings&quot;</span>: {
        <span class="hljs-string">&quot;theme&quot;</span>: <span class="hljs-string">&quot;sepia&quot;</span>,
        <span class="hljs-string">&quot;family&quot;</span>: <span class="hljs-string">&quot;serif&quot;</span>,
        <span class="hljs-string">&quot;size&quot;</span>:  <span class="hljs-number">1</span>
    }
}
</code></pre>
<h3 id="gitbook">gitbook</h3>
<p>&#x6307;&#x5B9A;&#x4F7F;&#x7528;&#x7684;gitbook&#x7248;&#x672C;</p>
<pre><code class="lang-json"><span class="hljs-string">&quot;gitbook&quot;</span> : <span class="hljs-string">&quot;2.6.4&quot;</span>,
</code></pre>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="./syntax.html" class="navigation navigation-prev " aria-label="Previous page: 语法"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="./plugins.html" class="navigation navigation-next " aria-label="Next page: 插件"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="gitbook/app.js"></script>

    
    <script src="gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
